package dz.chuxin.framework.widget.rowview;

/**
 * RowView描述基类
 * Created by chuxin on 2016/7/17.
 */
public abstract class BaseRowDescriptor {

    protected int rowId;
    protected boolean isClickEnable = true;
    private int verticalPadding = 10;
    private int horizontalPadding = 16;

    public BaseRowDescriptor(int rowId) {
        this.rowId = rowId;
    }

    public BaseRowDescriptor(int rowId, boolean isClickEnable) {
        this.rowId = rowId;
        this.isClickEnable = isClickEnable;
    }

    public BaseRowDescriptor(int rowId, boolean isClickEnable, int verticalPadding, int horizontalPadding) {
        this.rowId = rowId;
        this.isClickEnable = isClickEnable;
        this.verticalPadding = verticalPadding;
        this.horizontalPadding = horizontalPadding;
    }

    public BaseRowDescriptor(boolean isClickEnable) {
        this.isClickEnable = isClickEnable;
    }

    public boolean isClickEnable() {
        return isClickEnable;
    }

    public int getRowId() {
        return rowId;
    }

    public int getVerticalPadding() {
        return verticalPadding;
    }

    public int getHorizontalPadding() {
        return horizontalPadding;
    }
}
